SRCS = main.c func.c killbrothers.c queues.c CGI_auth.c
CSRCS = client-cgi.c queues.c CGI_auth.c
CC = gcc -O4 -Wall
LDFLAGS = -lrt -lcrypt -lsqlite3
OBJS = $(SRCS:.c=.o)
COBJS = $(CSRCS:.c=.o)
all : main client
main : $(OBJS)
	$(CC) $(CCFLAGS) $(LDFLAGS) $(OBJS) -o iface
	chmod a+s iface
client : $(COBJS)
	$(CC) $(CCFLAGS) $(LDFLAGS) $(COBJS) -o client
clean:
	/bin/rm -f *.o *~
depend:
	$(CC) -MM $(CXX.SRCS)

### <DEPENDENCIES ON .h FILES GO HERE> 
main.o : signals.h func.h keys.h killbrothers.h queues.h
func.o : signals.h func.h
killbrothers.o: killbrothers.h
queues.o: queues.h
client-cgi.o: queues.h

